-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[components] Remove AutomationConditionModel in favor of raw python object #26649
[components] Remove AutomationConditionModel in favor of raw python object #26649
Conversation
This stack of pull requests is managed by Graphite. Learn more about stacking. |
813dc40
to
483060a
Compare
aa2a754
to
63116a8
Compare
automation_condition: Optional[Union[str, AutomationCondition]] = RenderingScope( | ||
Field(None), required_scope={"automation_condition"} | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Technically, this field should actually just be of type Optional[str].
I want to do a followup here where we do something like:
automation_condition: Optional[str] = RenderedField(Optional[AutomationCondition], required_scope={"automation_condition"})
where we can have separate type checking for the rendered value
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this would be a great followup.
Leave comment to this effect explaining the next steps.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is so great
483060a
to
38baab7
Compare
63116a8
to
cf4029f
Compare
38baab7
to
67dc5d0
Compare
cf4029f
to
a5770fd
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
67dc5d0
to
3deb344
Compare
a5770fd
to
2b0ff0d
Compare
3deb344
to
7eb1d13
Compare
2b0ff0d
to
5fa066b
Compare
7eb1d13
to
8fb785a
Compare
5fa066b
to
bf1de3b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reqing changes based on standup.
- Separate class for DSL schema.
- Explicit conversion to Dagster domain object
- Optional dynamic layer (later) will automatically convert schema to domain object when possible to avoid duplication of dumb properties.
8fb785a
to
f4d3125
Compare
bf1de3b
to
3fb0a0b
Compare
3fb0a0b
to
d2563c8
Compare
Summary & Motivation
As title -- this pattern generally allows us to avoid creating parallel schemas for all of our library objects.
How I Tested These Changes
Changelog
NOCHANGELOG